#include <xp/bas/time.h>
#include <xp/bas/stdio.h>
#include <xp/bas/signal.h>

void xxx (int sig)
{
	xp_signal (SIGINT, xxx);
}

int xp_main ()
{
	xp_time_t t;

	xp_signal (SIGINT, xxx);

	xp_gettime (&t);
	xp_printf (XP_TEXT("%ld\n"), (long)t);

	xp_sleep (5300);

	xp_gettime (&t);
	xp_printf (XP_TEXT("%ld\n"), (long)t);

	return 0;	
}
